package com.houtaipeingboot.mapper;


import com.houtaipeingboot.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface DepartmentDao {
    //根据部门名称查询
    public List<Department> getDepartsByDepName(String deparname);
    //根据部门名称查询
    public Department getDepartsByDepName(int did);
    //根据id删除
    public int delByDid( int did);
    //根据id增加
    public int inByDid(@Param("depart") String depart,@Param("departmentdescription") String departmentdescription);
    //根据id更改
    public int upByDid(@Param("did") int did,@Param("depart") String depart,@Param("departmentdescription") String departmentdescription);
}
